SDIR = $(PWD)
SRCS = $(wildcard $(SDIR)/*.cpp)
INCS = -I./include
OBJS = $(SRCS:.cpp=.o)
DEPS = $(SRCS:.cpp=.d)
CROSS_COMPILE =
#CROSS_COMPILE =		aarch64-linux-gnu-
#CROSS_COMPILE =arm-linux-gnueabihf-
CPP =		$(CROSS_COMPILE)g++
TARGET_EXE = h26x_analyzer

TARGET_PATH := $(PWD)

LIBS :=

CFLAGS +=  $(INCS)  -std=gnu++11 -g
CPPFLAGS +=  $(INCS) -std=gnu++11 -g

all :$(TARGET_EXE) 

%.o : %.cpp
	$(CPP) -c $< -o $@  $(CPPFLAGS)

$(TARGET_EXE) : $(OBJS) 
	$(CPP) -o $(TARGET_PATH)/$@ $^  $(LIBS)	

.PHONY : clean

clean:
	rm -f *.o  $(TARGET_EXE) 
